﻿using System;
using System.Collections.Generic;
using System.Text;
using CharacterTrailLibrary.Persist.BLL.Model;

namespace CharacterTrailLibrary.Model
{
    public class ProductHeaderContainBase : TProductHeaderModel
    {
        private readonly TProductBaseModel _productBaseModel = null;
        public ProductHeaderContainBase(TProductHeaderModel productHeaderModel,TProductBaseModel productBaseModel)
        {
            foreach (var propertyInfo in typeof(TProductHeaderModel).GetProperties())
            {
                if(propertyInfo.CanWrite)
                {
                    propertyInfo.SetValue(this, propertyInfo.GetValue(productHeaderModel,null),null);
                }
            }
            this._productBaseModel = productBaseModel;
        }

        #region 属性
        /// <summary>
        ///
        /// </summary>
        public String OperateMember
        {
            get { return  _productBaseModel.OperateMember; }
  
        }
        /// <summary>
        ///
        /// </summary>
        public String MachineState
        {
            get { return _productBaseModel.MachineState; }

        }
        /// <summary>
        ///
        /// </summary>
        public String GoodsState
        {
            get { return _productBaseModel.GoodsState; }

        }
        /// <summary>
        ///
        /// </summary>
        public String PdState
        {
            get { return _productBaseModel.PdState; }
     
        }
        /// <summary>
        ///
        /// </summary>
        public String ProduceWay
        {
            get { return _productBaseModel.ProduceWay; }
        }
        /// <summary>
        ///
        /// </summary>
        public String ProduceEnvironment
        {
            get { return _productBaseModel.ProduceEnvironment; }
      
        }
        #endregion
    }
}
